using System;
using SpecificationPatternCode.BaseSpecs;

namespace SpecificationPatternCode.Abstracts
{
	public abstract class RangeSpecification<T> : AndSpecification<T> where T : IComparable<T>
	{
		protected RangeSpecification(T lower, T upper)
			: base(new GreaterThanSpecification<T> (lower), new LessThanSpecification<T> (upper))
		{
		}
	}
}